const routes = [
  {
    path: "/",
    redirect: "/individuation",
  },
  {
    //个性推荐
    path: "/individuation",
    name: "individuation",
    component: () => import("../views/individuation/individuation"),
  },
  {
    //歌单
    path: "/allmusiclist",
    name: "allmusiclist",
    component: () => import("../views/music-list/allmusiclist"),
  },
  {
    //排行榜
    path: "/ranklist",
    component: () => import("../views/ranklist/ranklist"),
    name: "ranklist",
  },
  {
    //歌手
    path: "/artist-list",
    name: "artist-list",
    component: () => import("../views/artist-list/artist-list"),
  },
  {
    //mv
    path: "/mv",
    name: "mv",
    component: () => import("../views/mv/mv.vue"),
  },
  {
    //最新歌曲
    path: "/new-songs",
    name: "new-songs",
    component: () => import("../views/new-songs/new-songs.vue"),
  },
  {
    //全部mv
    path: "/mvlist",
    name: "mvlist",
    component: () => import("../views/mv/childsComps/mv-category.vue"),
  },
  {
    // 需要传递歌单id和时间戳
    path: "/detail/:id/:time",
    name: "detail",
    component: () => import("../views/music-detail/music-detail.vue"),
  },
  {
    //歌手详情
    path: "/artistdetail",
    name: "artistdetail",
    component: () => import("../views/artist-detail/artist-detail.vue"),
  },
  {
    // mv详情
    path: "/mvdetail/:id",
    name: "mvdetail",
    component: () => import("../views/mv-detail/mv-detail.vue"),
  },
  {
    //搜索详情  searchTxt 搜索字段
    path: "searchinfo/:searchTxt",
    name: "searchinfo",
    component: () => import("../search/search-info.vue"),
  },
];
export default routes;
